import URL_API from '@/const/url-api';
import axios from '@/common/axios-setting';

/**
 * 从数据库获取已存的用户信息
 */
export async function getUserInfoRemoteService(payload = {}) {
    return axios.get(URL_API.GET_USER_INFO, {
        params: payload,
    });
}

/**
 * 更新用户个人信息
 */
export async function updateUserInfoService(payload = {}) {
    return axios.post(URL_API.UPDATE_USER_INFO, {
        ...payload,
    });
}

/**
 * 报名职位
 */
export async function submitDeliveryService(payload = {}) {
    return axios.post(URL_API.SUBMIT_DELIVERY, {
        ...payload,
    });
}
